﻿using J.StatusModel;
using J.StatusModel.Dto;
using Microsoft.EntityFrameworkCore;

namespace J.StatusRepository
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions options) : base(options){ }
        /// <summary>
        /// 房号管理表
        /// </summary>
        public virtual DbSet<RoomNumManage>? RoomNumManage { get; set; }
        /// <summary>
        /// 房型管理
        /// </summary>
        public DbSet<RoomTypeModel> RoomTypeModel { get; set; }
        /// <summary>
        /// 房型标签
        /// </summary>
        public DbSet<RoomTypeLabelModel> RoomTypeLabelModel { get; set; }
        /// <summary>
        /// 预定表
        /// </summary>
        public DbSet<BookingModel> BookingModel { get; set; }
        /// <summary>
        /// 预定和房型的关系表
        /// </summary>
        public DbSet<BookingRoomModel> BookingRoomModel { get; set; }
        /// <summary>
        /// 订单表
        /// </summary>
        public DbSet<OrdersModel> OrdersModel { get; set; }
        /// <summary>
        /// 入住信息表
        /// </summary>
        public DbSet<StayModel> StayModel { get; set; }
        /// <summary>
        /// 保留信息表
        /// </summary>
        public virtual DbSet<ReserveModel>? ReserveModel { get; set; }
        /// <summary>
        /// 结算表
        /// </summary>
        public virtual DbSet<SettlementModel>? SettlementModel { get; set; }
    }
}